package com.tjetc.dao.impl;

import com.tjetc.dao.IncomeDao;
import com.tjetc.pojo.vo.IncomeVO;
import com.tjetc.utils.DruidUtils;

/**
 * @Author: itda
 * @Date: 2024/5/15 11:58
 * @Description: IncomeDaoImpl
 */
public class IncomeDaoImpl implements IncomeDao {
    @Override
    public void insert(IncomeVO incomeVO) throws Exception{
        DruidUtils.r1.update(DruidUtils.getConnection(),"insert into income (room_id, cost, create_time) VALUES (?,?,?)",incomeVO.getRoomId(),incomeVO.getCost(),incomeVO.getCreateTime());
    }
}
